package aiku.numericalcontroloa.Mapper.OrderManagement;

import aiku.numericalcontroloa.Model.Entity.OrderManagement.OrderCommission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.List;

/**
 *
 * @Author 黄广庭
 * @Date 2024/4/22 16:17
 */
@Repository
public interface OrderCommissionMapper extends BaseMapper<OrderCommission> {

    /**
     * 根据用户id查询
     * @param userId
     * @return
     */
    List<OrderCommission> selectByUserIdWithDelete(@Param(value = "userId") String userId);

    /**
     * 根据用户id列表批量查询
     * @param userIdList
     * @return
     */
    List<OrderCommission> selectBatchUserIdWithDelete(@Param(value = "list")Collection<String> userIdList);

    /**
     * 根据id列表批量查询
     * @param idList
     * @return
     */
    List<OrderCommission> selectBatchIdsWithDelete(@Param(value = "list")Collection<String> idList);
}
